ci: add sync-translations workflow for zh-cn#723
Conversation
Adds a GitHub Actions workflow that automatically translates changed lectures into Simplified Chinese on merged PRs, targeting QuantEcon/lecture-intro.zh-cn via QuantEcon/action-translation@v0.14.1. Supports re-triggering via \translate-resync comment on merged PRs.
✅ Deploy Preview for taupe-gaufre-c4e660 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
Adds an automated GitHub Actions workflow to sync/translate updated lecture content into the Simplified Chinese target repository (QuantEcon/lecture-intro.zh-cn) when relevant PRs are merged, with an optional comment-based re-sync trigger.
Changes:
- Introduces a new workflow triggered on merged PRs affecting
lectures/**/*.mdorlectures/_toc.yml. - Adds an
issue_commentre-trigger mechanism via\translate-resync. - Runs
QuantEcon/action-translation@v0.14.1insyncmode targetingzh-cn.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Gate issue_comment re-sync to OWNER/MEMBER/COLLABORATOR only - Verify comment is on a PR (not a plain issue) - Resolve the merged PR's commit SHA for correct checkout on re-sync - Verify the PR is actually merged before proceeding
|
Superseded by #795, which landed 2026-07-18 with the current fleet pattern ( |
Adds a GitHub Actions workflow that automatically translates changed lectures into Simplified Chinese on merged PRs, targeting QuantEcon/lecture-intro.zh-cn via
QuantEcon/action-translation@v0.14.1.Details
lectures/**/*.mdorlectures/_toc.yml\translate-resyncon a merged PRQuantEcon/lecture-intro.zh-cnQuantEcon/action-translation@v0.14.1Based on the same pattern used in lecture-python-programming.
Prerequisites
Ensure the following secrets are configured in this repository:
ANTHROPIC_API_KEYQUANTECON_SERVICES_PAT(with write access toQuantEcon/lecture-intro.zh-cn)TODO
zh-cnrepo